﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace BaiTu.Framework.MVCFramework
{
    public class RssActionResult : ActionResult
    {
        //public SyndicationFeed Feed { get; set; }

        public override void ExecuteResult(ControllerContext context)
        {
        //    context.HttpContext.Response.ContentType = "application/rss+xml";

        //    var rssFormatter = new Rss20FeedFormatter(Feed);
        //    using (var writer = XmlWriter.Create(context.HttpContext.Response.Output))
        //    {
        //        rssFormatter.WriteTo(writer);
        //    }
        }
    }
}
